package com.shujia.jichu

class Student3(id: String, name: String) {

  private val _id: String = id
  private val _name: String = name
  private var _age: Int = _

  def this(id: String, name: String, age: Int) {
    this(id, name)
    this._age = age
  }

  override def toString: String = s"学号:${_id},姓名:${_name},年龄:${_age}"
}
